package com.zxq.factory.utils;


public class BytesReverse {

    /**
     * 反转二进制数组
     * @param array
     */
    public static void reverse(byte[] array) {

        for(int i=0,j = array.length-1; i < j; i++,j--) {
            byte temp = array[i];
            array[i] = array[j];
            array[j] = temp;
        }

    }


}
